home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
need
/
NeedControl.as
next >
Wrap
Text File
|
2011-09-19
|
11KB
|
354 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
e.f.h = new g();
}
§§pop();
if(!e.f.h[§§constant(4)])
{
f.h[§§constant(4)] extends f[§§constant(7)];
var _loc2_ = f.h[§§constant(4)] = function()
{
super();
_global[§§constant(5)] = this;
this[§§constant(6)]();
}[§§constant(8)];
_loc2_[§§constant(6)] = function()
{
this[§§constant(9)] = _global[§§constant(10)][§§constant(9)];
this[§§constant(11)] = _global[§§constant(10)][§§constant(12)];
this[§§constant(13)] = _global[§§constant(10)][§§constant(14)][§§constant(15)]();
this[§§constant(16)] = _global[§§constant(10)][§§constant(16)][§§constant(15)]();
this[§§constant(17)] = new §\§\§constant(18)§();
this[§§constant(19)]();
this[§§constant(20)] = 1000;
this[§§constant(21)] = 0;
};
_loc2_[§§constant(19)] = function()
{
var _loc6_ = this[§§constant(9)];
var _loc5_ = this[§§constant(13)][§§constant(22)];
var _loc3_ = 0;
while(_loc3_ < _loc5_)
{
var _loc4_ = this[§§constant(13)][_loc3_];
_loc4_[§§constant(23)] = _loc3_ + 1;
_loc3_ = _loc3_ + 1;
}
this[§§constant(14)] = new §\§\§constant(18)§();
this[§§constant(14)] = this[§§constant(14)][§§constant(24)](this[§§constant(13)]);
delete this[§§constant(13)];
if(this[§§constant(14)][§§constant(22)] == 0)
{
_global[§§constant(26)][§§constant(27)](100,§§constant(25));
f[§§constant(30)][§§constant(31)][§§constant(32)](_global[§§constant(28)],_global[§§constant(28)][§§constant(29)],200);
return undefined;
}
this[§§constant(33)] = 0;
this[§§constant(34)]();
};
_loc2_[§§constant(34)] = function()
{
var _loc2_ = this[§§constant(14)][this[§§constant(33)]];
_loc2_[§§constant(35)] = §§constant(36);
f[§§constant(37)][§§constant(38)][§§constant(39)](_loc2_);
};
_loc2_[§§constant(40)] = function()
{
var _loc3_ = this[§§constant(14)][§§constant(22)] - 1;
var _loc4_ = 25 + eval(§§constant(41))[§§constant(42)](25 * this[§§constant(33)] / _loc3_);
_global[§§constant(26)][§§constant(27)](_loc4_,§§constant(25));
if(this[§§constant(33)] == _loc3_)
{
this[§§constant(33)] = 0;
_global[§§constant(43)][§§constant(44)]();
f[§§constant(30)][§§constant(31)][§§constant(32)](_global[§§constant(45)],_global[§§constant(45)][§§constant(46)],200);
}
else
{
this[§§constant(33)] = this[§§constant(33)] + 1;
f[§§constant(30)][§§constant(31)][§§constant(32)](this,this[§§constant(34)],10);
}
};
_loc2_[§§constant(47)] = function()
{
this[§§constant(48)] += 40;
if(this[§§constant(49)])
{
if(this[§§constant(48)] > this[§§constant(49)])
{
this[§§constant(50)]();
}
}
var _loc2_ = 0;
while(_loc2_ < this[§§constant(17)][§§constant(22)])
{
this[§§constant(17)][_loc2_][§§constant(47)]();
_loc2_ = _loc2_ + 1;
}
};
_loc2_[§§constant(51)] = function()
{
if(this[§§constant(16)][0][§§constant(35)] == §§constant(52))
{
var _loc6_ = this[§§constant(16)][§§constant(53)]();
var _loc4_ = 0;
while(_loc4_ < _loc6_[§§constant(54)])
{
var _loc5_ = f[§§constant(30)][§§constant(56)][§§constant(57)](_loc6_[§§constant(55)]);
var _loc3_ = this[§§constant(58)](_loc5_);
_loc3_[§§constant(59)] = true;
_loc3_[§§constant(60)](§§constant(52));
_loc4_ = _loc4_ + 1;
}
}
if(_global[§§constant(28)][§§constant(61)] > 1)
{
this[§§constant(16)] = f[§§constant(30)][§§constant(56)][§§constant(62)](this[§§constant(16)]);
}
};
_loc2_[§§constant(50)] = function()
{
this[§§constant(48)] = 0;
this[§§constant(49)] = f[§§constant(30)][§§constant(64)][§§constant(65)](this[§§constant(11)] / 4,50,§§constant(63));
if(this[§§constant(16)][§§constant(22)] == 0)
{
this[§§constant(49)] = undefined;
return undefined;
}
var _loc3_ = this[§§constant(66)]();
if(_loc3_ == 2)
{
this[§§constant(49)] *= 3;
}
else if(_loc3_ == 3)
{
this[§§constant(49)] *= 6;
}
else if(_loc3_ >= 4)
{
this[§§constant(49)] *= 10;
}
var _loc4_ = undefined;
if(_global[§§constant(28)][§§constant(61)] == 1)
{
_loc4_ = this[§§constant(16)][§§constant(53)]();
if(this[§§constant(21)] < 5)
{
this[§§constant(21)] = this[§§constant(21)] + 1;
var _loc5_ = true;
if(this[§§constant(21)] == 5)
{
if(!_global[§§constant(68)][§§constant(69)](§§constant(67)))
{
_loc5_ = false;
}
}
if(_loc5_)
{
var _loc7_ = §§constant(70) + this[§§constant(21)];
f[§§constant(37)][§§constant(38)][§§constant(72)](_global[_loc7_],false,§§constant(71));
}
}
}
else
{
_loc4_ = f[§§constant(30)][§§constant(56)][§§constant(57)](this[§§constant(16)]);
}
var _loc6_ = this[§§constant(73)](_loc4_[§§constant(55)]);
if(_loc6_[§§constant(22)] > 0)
{
var _loc8_ = f[§§constant(30)][§§constant(56)][§§constant(74)](_loc6_);
_loc8_[§§constant(60)](_loc4_[§§constant(35)]);
_global[§§constant(75)][§§constant(76)]();
}
};
_loc2_[§§constant(73)] = function(groupIds)
{
var _loc4_ = new §\§\§constant(18)§();
var _loc5_ = groupIds[§§constant(22)];
var _loc2_ = 0;
while(_loc2_ < _loc5_)
{
var _loc3_ = this[§§constant(58)](groupIds[_loc2_]);
if(!_loc3_[§§constant(77)])
{
_loc4_[§§constant(78)](_loc3_);
}
_loc2_ = _loc2_ + 1;
}
return _loc4_;
};
_loc2_[§§constant(79)] = function(obj)
{
var _loc2_ = this[§§constant(58)](obj[§§constant(80)]);
if(_loc2_ == undefined)
{
_loc2_ = new f.h[§§constant(81)](obj[§§constant(80)]);
this[§§constant(17)][§§constant(78)](_loc2_);
}
_loc2_[§§constant(82)](obj);
};
_loc2_[§§constant(58)] = function(groupId)
{
var _loc4_ = this[§§constant(17)][§§constant(22)];
var _loc2_ = 0;
while(_loc2_ < _loc4_)
{
var _loc3_ = this[§§constant(17)][_loc2_];
if(_loc3_[§§constant(80)] == groupId)
{
return _loc3_;
}
_loc2_ = _loc2_ + 1;
}
return undefined;
};
_loc2_[§§constant(83)] = function(ng)
{
var _loc3_ = this[§§constant(17)][§§constant(22)];
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
if(this[§§constant(17)][_loc2_] == ng)
{
this[§§constant(17)][§§constant(84)](_loc2_,1);
break;
}
_loc2_ = _loc2_ + 1;
}
};
_loc2_[§§constant(85)] = function()
{
if(this[§§constant(16)][§§constant(22)] > 0)
{
return true;
}
if(this[§§constant(66)]() > 0)
{
return true;
}
return false;
};
_loc2_[§§constant(66)] = function()
{
var _loc4_ = 0;
var _loc5_ = this[§§constant(17)][§§constant(22)];
var _loc2_ = 0;
while(_loc2_ < _loc5_)
{
var _loc3_ = this[§§constant(17)][_loc2_];
if(_loc3_[§§constant(86)])
{
_loc4_ = _loc4_ + 1;
}
_loc2_ = _loc2_ + 1;
}
return _loc4_;
};
_loc2_[§§constant(87)] = function()
{
var _loc4_ = this[§§constant(16)][§§constant(22)];
var _loc5_ = this[§§constant(17)][§§constant(22)];
var _loc2_ = 0;
while(_loc2_ < _loc5_)
{
var _loc3_ = this[§§constant(17)][_loc2_];
_loc4_ += _loc3_[§§constant(88)][§§constant(22)];
_loc2_ = _loc2_ + 1;
}
return _loc4_;
};
_loc2_[§§constant(89)] = function(nd)
{
var _loc4_ = 0;
var _loc5_ = this[§§constant(17)][§§constant(22)];
var _loc2_ = 0;
while(_loc2_ < _loc5_)
{
var _loc3_ = this[§§constant(17)][_loc2_];
if(_loc3_[§§constant(90)][§§constant(91)] == nd)
{
_loc4_ = _loc4_ + 1;
}
_loc2_ = _loc2_ + 1;
}
return _loc4_;
};
_loc2_[§§constant(92)] = function()
{
if(_global[§§constant(28)][§§constant(61)] == 0)
{
return undefined;
}
if(_global[§§constant(93)] == undefined)
{
return undefined;
}
_global[§§constant(43)][§§constant(44)]();
var _loc4_ = this[§§constant(87)]() > 0;
if(!_loc4_)
{
_global[§§constant(37)][§§constant(94)] = true;
return undefined;
}
var _loc3_ = this[§§constant(66)]();
if(_loc3_ == 0)
{
this[§§constant(50)]();
}
};
_loc2_[§§constant(95)] = function(camp, excludeGroup)
{
var _loc4_ = this[§§constant(17)][§§constant(22)];
var _loc3_ = 0;
while(_loc3_ < _loc4_)
{
var _loc2_ = this[§§constant(17)][_loc3_];
if(_loc2_ != excludeGroup)
{
if(_loc2_[§§constant(90)] != undefined)
{
if(!_loc2_[§§constant(96)])
{
if(!_loc2_[§§constant(97)])
{
if(_loc2_[§§constant(90)][§§constant(98)](camp))
{
return _loc2_;
}
}
}
}
}
_loc3_ = _loc3_ + 1;
}
return null;
};
§§push(§§constant(99)(f.h[§§constant(4)][§§constant(8)],null,1));
}
§§pop();